package com.example.springcloudfeign.service;

import com.example.springcloudfeign.service.impl.HelloServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "SPRINGCLOUD-CLIENT", fallback = HelloServiceImpl.class)
public interface HelloService {

    @RequestMapping("/hi")
    String sayHello(@RequestParam String name);
}
